package com.dwxt.community.aiequipment.sellmachine.entity.enumeration;

/**
 * @program: intelligentcity
 * @description:
 * @author
 * @create: 2020/05/14
 */
public enum NetpayTypeEnum {

    url(0,"请求链接或价格"),
    status(1,"查询付款状态"),
    aisle(2,"查询货道信息"),
    jifen (3,"积分兑换"),
    ;
    private Integer code;
    private String msg;

    NetpayTypeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public static String getMsg(Integer code) {
        NetpayTypeEnum[] values = NetpayTypeEnum.values();
        for (NetpayTypeEnum s : values) {
            Integer thisCode = s.getCode();
            if (code.equals(thisCode)) {
                return s.getMsg();
            }
        }
        return null;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
